﻿<cfsilent>
	<cfscript>

		sessionAdvice = getProperty("serviceFactory").getBean("sessionAdvice");
		jsonAdvice = getProperty("serviceFactory").getBean("jsonAdvice");
		response = structNew();
		
		structInsert(response, "success", false, true);

		userID = sessionAdvice.getAutherUserID();
		
		userProperty = sessionAdvice.getUserProps();
		
		content = event.getArg("content");
		
	</cfscript>
     
  
</cfsilent>

   <cftry>
          <cfmail to = "yihualing@vip.qq.com" from = "yangle@speedit.cn" subject = "教务系统问题反馈" type="HTML">  
          <cfoutput>用户:#userID# --#userProperty["username"]#<br/>内容：# content#</cfoutput>
          
     
          </cfmail>  
		<cfscript>
               structInsert(response, "success", true, true);
          </cfscript>
    <cfcatch>
    		<cfscript>
               structInsert(response, "success", false, true);
          </cfscript>
    </cfcatch>
    
    </cftry>
<cfoutput>#jsonAdvice.encode(data:response, stringNumbers:true)#</cfoutput>